#define _CRT_SECURE_NO_WARNINGS 
int removeElement(int* nums, int numsSize, int val)
{
    int src = 0;
    int dst = 0;
    while (nums < numsSize)
    {
        if (nums[src] != val)
        {
            nums[src++] = nums[dst++];
        }
        else
        {
            src++;
        }
    }
    return dst;
}
